package com.lizhenhua.productskuquery.controller;

import com.lizhenhua.fmmall.entity.ProductSku;
import com.lizhenhua.productskuquery.service.ProductSkuService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProductSkuQueryController {
@Autowired
private ProductSkuService service;

    @GetMapping("product/query/sku")
    public ProductSku query(@RequestParam("skuId") String skuId){
        System.out.println("------------执行了product/query/sku");
        ProductSku productSku = service.queryProductSku(skuId);
        return productSku;
    }

}
